package com.czkt.service.impl;

import java.util.List;

import com.czkt.domain.ErpOrderLine;
import com.czkt.mapper.ErpOrderLineMapper;
import com.czkt.service.IErpOrderLineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 销售订单明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-23
 */
@Service
public class ErpOrderLineServiceImpl implements IErpOrderLineService
{
    @Autowired
    private ErpOrderLineMapper erpOrderLineMapper;

    /**
     * 查询销售订单明细
     * 
     * @param id 销售订单明细主键
     * @return 销售订单明细
     */
    @Override
    public ErpOrderLine selectErpOrderLineById(Long id)
    {
        return erpOrderLineMapper.selectErpOrderLineById(id);
    }

    /**
     * 查询销售订单明细列表
     * 
     * @param erpOrderLine 销售订单明细
     * @return 销售订单明细
     */
    @Override
    public List<ErpOrderLine> selectErpOrderLineList(ErpOrderLine erpOrderLine)
    {
        return erpOrderLineMapper.selectErpOrderLineList(erpOrderLine);
    }

    /**
     * 新增销售订单明细
     * 
     * @param erpOrderLine 销售订单明细
     * @return 结果
     */
    @Override
    public int insertErpOrderLine(ErpOrderLine erpOrderLine)
    {
        return erpOrderLineMapper.insertErpOrderLine(erpOrderLine);
    }

    /**
     * 修改销售订单明细
     * 
     * @param erpOrderLine 销售订单明细
     * @return 结果
     */
    @Override
    public int updateErpOrderLine(ErpOrderLine erpOrderLine)
    {
        return erpOrderLineMapper.updateErpOrderLine(erpOrderLine);
    }

    /**
     * 批量删除销售订单明细
     * 
     * @param ids 需要删除的销售订单明细主键
     * @return 结果
     */
    @Override
    public int deleteErpOrderLineByIds(Long[] ids)
    {
        return erpOrderLineMapper.deleteErpOrderLineByIds(ids);
    }

    /**
     * 删除销售订单明细信息
     * 
     * @param id 销售订单明细主键
     * @return 结果
     */
    @Override
    public int deleteErpOrderLineById(Long id)
    {
        return erpOrderLineMapper.deleteErpOrderLineById(id);
    }
}
